using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db.Ai;


namespace HengTong.ViewModel._Admin.SysPromptVms
{
    public partial class SysPromptTemplateVm : BaseTemplateVM
    {
        [Display(Name = "名称")]
        public ExcelPropety NameExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.Name);
        [Display(Name = "编码")]
        public ExcelPropety CodeExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.Code);
        [Display(Name = "描述")]
        public ExcelPropety DescriptionExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.Description);
        [Display(Name = "提示词分组")]
        public ExcelPropety GroupExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.GroupId);
        [Display(Name = "系统提示词")]
        public ExcelPropety SystemPromptExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.SystemPrompt);
        [Display(Name = "用户提示词")]
        public ExcelPropety UserPromptExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.UserPrompt);
        [Display(Name = "版本号")]
        public ExcelPropety VersionExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.Version);
        [Display(Name = "排序")]
        public ExcelPropety SortOrderExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.SortOrder);
        [Display(Name = "是否启用")]
        public ExcelPropety IsEnabledExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.IsEnabled);
        [Display(Name = "备注")]
        public ExcelPropety RemarkExcel = ExcelPropety.CreateProperty<SysPrompt>(x => x.Remark);

	    protected override void InitVM()
        {
            GroupExcel.DataType = ColumnDataType.ComboBox;
            GroupExcel.ListItems = DC.Set<SysPromptGroup>().GetSelectListItems(Wtm, y => y.Name);
        }

    }

    public class SysPromptImportVm : BaseImportVM<SysPromptTemplateVm, SysPrompt>
    {

    }

}
